package net.jxvtc.blogv1.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @program: blogv1
 * @description: 后台控制器
 * @author: 蓝建平
 * @create: 2020-10-24 10:00
 **/
@Controller
@RequestMapping("/admins")
public class AdminController {
 
	/**
	 * 获取后台管理主页面
	 * @return
	 */
	@GetMapping
	public ModelAndView listUsers(Model model) {
		return
				new ModelAndView("admins/index", "menuList", model);
	}

}